package tr.helper.auth;

import com.google.common.collect.Maps;

import java.util.Map;

public class AccountWithSecurityKey {
    private static final Map<String, String> ACCOUNT_INFO;

    static {
        ACCOUNT_INFO = Maps.newHashMap();
        // 123233110qQTr4
        ACCOUNT_INFO.put("liurong1001@ee.cm", "MQZDSYRTHFTDALLBMU3DQLJRGFSWGLLCHAZTMLJUMY4TCMBWMJRTCZLFMU");
        // 123233110qQTr12
        ACCOUNT_INFO.put("caojm5001@ee.cm", "GA4TKMRTGU4DALLBMU3DOLJRGFSWGLLCMJRWCLJZGEZTONLEG43GIMRTMY");
    }


    public static void main(String[] args) {
        ACCOUNT_INFO.forEach((key, value) -> {
            String code = GoogleAuthenticatorUtils.getTOTPCode(ACCOUNT_INFO.get(key));
            System.out.println("account:" + key + "\n" + code + "\n");
        });

    }
}
